package com.manage.base.bean;

import java.io.Serializable;

import com.manage.config.model.Config;

/***
 * 请求结果信息
 * <p>
 * @author dizh
 *
 */
public class ResultBean implements Serializable{

    private static final long serialVersionUID = 877201555890118963L;

    /**
     * 结果标志
     */
    private int flag;
    
    /**
     * 返回结果
     */
    private String returnMessage;
    
    public ResultBean(){
    }
    
    public ResultBean(int flag,String returnMessage){
        this.flag = flag;
        this.returnMessage = returnMessage;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public String getReturnMessage() {
        return returnMessage;
    }

    public void setReturnMessage(String returnMessage) {
        this.returnMessage = returnMessage;
    }

	public void setError() {
		setFlag(Config.FAILE);
	}
}
